﻿<phone:PhoneApplicationPage
    x:Class="Studio77.GuessTheWords2.Pages.StagePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    xmlns:myViews="clr-namespace:Studio77.GuessTheWords2.Views"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Viewbox>
		<Grid x:Name="LayoutRoot" Background="Transparent" Height="800" Width="480">
			<Grid.RowDefinitions>
				<RowDefinition Height="51"/>
				<RowDefinition/>
			</Grid.RowDefinitions>
			<Image Source="/Images/stage_background.png" Stretch="Fill" d:IsLocked="True" Grid.RowSpan="2"/>
			<TextBlock HorizontalAlignment="Center" Margin="0,-9,0,0" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtClassIndex}" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="48" Grid.RowSpan="2" Foreground="#FF4B4B4B" RenderTransformOrigin="0.5,0.5">
				<TextBlock.RenderTransform>
					<CompositeTransform TranslateX="2" TranslateY="2"/>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="txtClassIndex" HorizontalAlignment="Center" Margin="0,-9,0,0" TextWrapping="Wrap" Text="1" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="48" Grid.RowSpan="2" Foreground="#FFF9F9F9"/>

            <ListBox x:Name="lstStages" ItemsSource="{Binding}" Grid.Row="1" Margin="30,30,29,30">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <myViews:StageItemView HorizontalAlignment="Center" Margin="0,3,0,3"/>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </Grid>

	</Viewbox>

</phone:PhoneApplicationPage>